package com.fingard.avatar.website.model.po;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fingard.avatar.website.model.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author 徐一涛
 * @date 2022-04-27
 */
@Data
@Accessors(chain = true)
@TableName("sys_upload")
public class SysUploadPo implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("file_name")
    private String fileName;

    @TableField("new_name")
    private String newName;

    @TableField("file_url")
    private String fileUrl;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

}
